x86/vmx_update_guest_cr: minor optimization
authorCorneliu ZUZU <czuzu@bitdefender.com>
Sat, 9 Jul 2016 04:12:07 +0000 (07:12 +0300)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 12 Jul 2016 18:11:57 +0000 (19:11 +0100)
commit1fb0fe97a647549cc1bbe90f15b6cb2fcc3f79b6
tree10f8596292349ed0b3413fee89c4fa5d913541a2
parent22ea8ad02e465e32cd40887c750b55c3a997a288
x86/vmx_update_guest_cr: minor optimization

Minor optimization @ vmx_update_guest_cr: checks if v->arch.hvm_vmx.exec_control
was modified before actually calling vmx_update_cpu_exec_control(v).

Signed-off-by: Corneliu ZUZU <czuzu@bitdefender.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmx.c